package com.yinhe.music.yhmusic.main;

import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import com.yinhe.music.yhmusic.R;
import com.yinhe.music.yhmusic.base.BasePresenter;
import com.yinhe.music.yhmusic.base.BaseServiceActivity;
import com.yinhe.music.yhmusic.constants.IConstants;
import com.yinhe.music.yhmusic.music.list.MusicListFragment;

/**
 * @author 何晓华
 * @date 2018/5/29
 */

public class BoughtMusicActivity extends  BaseServiceActivity{

    @Override
    public void initView() {
        setToolbar("已购歌曲");
        showQuickControl(true);

        MusicListFragment musicListFragment = MusicListFragment.newInstance(IConstants.ALREADY_BUY_MUSIC_LIST, null);
        FragmentManager fm = getSupportFragmentManager();
        FragmentTransaction tx = fm.beginTransaction();
        tx.add(R.id.FrameLayout, musicListFragment);
        tx.commit();
    }

    @Override
    public int getLayoutResId() {
        return R.layout.activity_collection_radio;
    }

    @Override
    public BasePresenter getPresenter() {
        return null;
    }

    @Override
    public void initPresenter() {

    }
}
